<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
       xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
<link href="../resources/css/main.css" rel="stylesheet" type="text/css" />
</h:head>
<body>
	<div class="contenitore">
 		<div class="riga">
  			<div class="colonna-1">
				<img id="immagine" src="../resources/images/logo.jpg" alt="" />
				
  			</div>
  			<div class="colonna-1-2">
  				<h1>Administration Panel</h1>	
 				<h:outputText id="welcometext" value="Pannello dedicato alla gestione e creazione dei contenuti del sito TravelDream"></h:outputText>
  			</div>
 		</div>
 		
 		<div id="riga2">
  			<div class="colonna-2-1">
  				<h:form>
						<p:commandButton action="#{logoutBean.logout}" value="Logout" />
				</h:form>
  			</div>
  			<div class="colonna-2-2">
  				<h:form>  
	<div id="standard">
  
    <p:panel header="Creazione Escursione">  
        <h:panelGrid columns="2" cellpadding="5">  
            <h:outputText value="Descrizione: " />  
			<p:inputTextarea rows="6" cols="33" id="descrizione" value="#{gestioneExcursionLocal.current.description}"/>            				
              
            <h:outputText value="Durata: " />  
            <p:inputText id="indirizzo" value="#{gestioneExcursionLocal.current.durata}"/>  
              
            <h:outputText value="Nome: " />  
            <p:inputText id="name" value="#{gestioneExcursionLocal.current.name}"/>  
              
            <h:outputText value="Prezzo: " />  
            <p:inputText id="price" value="#{gestioneExcursionLocal.current.price}"/>  
             
          
            <p:commandButton value="Reset" type="reset" />  
            <p:commandButton value="Submit" action="#{gestioneExcursionLocal.create()}" />  
  
        </h:panelGrid>  
    </p:panel> 
    </div>
      
	</h:form>
  				
  				
  			</div>
  			<div class="colonna-2-3">
  				<h:panelGrid columns="1" cellpadding="10">
  					<h:form>
      				<p:commandButton id="button" action="showhotel" value="Mostra tutti gli Hotel" ajax="false"/>
      				<p:commandButton action="showtransport" value="Mostra tutti i Trasporti" ajax="false"/>
      				<p:commandButton action="showexcursion" value="Mostra tutte le Escursioni" ajax="false"/>
      				<p:commandButton action="showpacchetto" value="Mostra tutti i Pacchetti" ajax="false"/>
      				</h:form>
      			</h:panelGrid>
      			<h:panelGrid columns="1" cellpadding="10">
      				<h:form>
      				<p:commandButton action="creahotel" value="+Crea Hotel" ajax="false"/>
      				<p:commandButton action="creatrasporto" value="+Crea Trasporto" ajax="false"/>
      				<p:commandButton action="creaescursione" value="+Crea Escursione" ajax="false"/>
      				<p:commandButton action="creapacchetto" value="+Crea Pacchetto" ajax="false"/>
      				</h:form>
      			</h:panelGrid>
  			
  			</div>
 		</div>
 	</div>
	 
	



</body>
</html>